//
//  midPicView.m
//  DuiTang--
//
//  Created by Lina Zhang on 16/10/11.
//  Copyright © 2016年 jpw. All rights reserved.
//
#import "DWHomeItem.h"
#import <UIImageView+WebCache.h>
#import "midPicView.h"
@interface midPicView()
@property (weak, nonatomic) IBOutlet UIImageView *midPicView;
@end
@implementation midPicView
+(instancetype)midPicView{
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].firstObject;
}
-(void)setItem:(DWHomeItem *)item{
    _item = item;
    [self.midPicView sd_setImageWithURL:[NSURL URLWithString:item.image_url] completed:nil];
}
@end
